package cn.com.blueInfo.bpm.person.mapper;

import cn.com.blueInfo.bpm.person.entity.Post;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 岗位与组织关系表 Mapper 接口
 * @author suxch
 * @since 2025-08-24 01:39:52
 */
@Mapper
public interface PostMapper extends BaseMapper<Post> {

    @Select("SELECT * FROM mc_osm_post ${ew.customSqlSegment}")
    Page<Post> selectDeletePage(
            IPage<Post> page, @Param(Constants.WRAPPER) Wrapper<Post> queryWrapper);

    @Select("SELECT * FROM mc_osm_post ${ew.customSqlSegment}")
    List<Post> selectDeleteList(@Param(Constants.WRAPPER) Wrapper<Post> queryWrapper);

    @Select("SELECT COUNT(*) FROM mc_osm_post ${ew.customSqlSegment}")
    Long selectDeleteCount(@Param(Constants.WRAPPER) Wrapper<Post> queryWrapper);

}
